$(() => {
    let font = JSON.parse(localStorage.getItem('font'));
    let pos = JSON.parse(localStorage.getItem('pos'));

    // 默认字体样式
    let cfg = {
        family: '微软雅黑',
        size: 16,
        style: '常规',
    }

    $menubar.show(data);
    $editor.show()
    $editor.setFont(font ? font : cfg)

    $statusbar.show(
        cfg = {
            row: pos ? pos.row : 1,
            col: pos ? pos.col : 1
        }
    )

});